<?php
session_start();
if (!(isset($_SESSION['admin']) and $_SESSION['admin'] == 1)) {
    //说明未登录
    echo "<script>alert('只有管理员才能后台管理');location.href='login.html';</script>";
    exit;
}
